#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <Windows.h>
int main(int argc, char *argv[])
{
	int cnt = 10000000;
	if (argc > 1)
		cnt = atoi(argv[1]);
	int *array = new int[100000];
	memset(array, 0, sizeof(array));
	for (int i = 0; i < 100000; i++)
	{
		array[i] = 0;
	}
	for (int i = 0; i < cnt; i++)
	{
		array[i%100000] = sin((float)i + array[i%100000]) ;
	}
	for (;;)
	{
		Sleep(1000);
	}
}